<?php

namespace App\Service\GuildManage;

use App\Constants\ErrorCode;
use App\Exception\ApiException;

class AddCardService
{
    public $cardAccount;

    public function addAccount(): string
    {
        if (empty($this->cardAccount)) {
            throw new ApiException('请输入银行卡账号', ErrorCode::DEFAULT_ERROR);
        }

        return $this->cardAccount;
    }
}